<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>winqueryreg</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : 05/01/2005</div>
    <p>
      <b>winqueryreg</b> - Get item from Microsoft Windows
  registry</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>value = winqueryreg('name',
    'rootkey','subkey')</tt>
      </dd>
      <dd>
        <tt>value = winqueryreg('rootkey',
    'subkey','valname')</tt>
      </dd>
      <dd>
        <tt>value =
    winqueryreg('rootkey','subkey')</tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>value = winqueryreg('name', 'rootkey', 'subkey') returns the key names
    in <tt>
        <b>rootkey\subkey</b>
      </tt> in a matrix of strings. The first argument
    is the literal quoted string, 'name'.</p>
    <p>If the value retrieved from the registry is a string, winqueryreg
    returns a string. If the value is a 32-bit integer, winqueryreg returns
    the value as an integer (int32).</p>
    <p>value = winqueryreg('rootkey', 'subkey', 'valname') returns the value
    for key valname in <tt>
        <b>rootkey\subkey</b>
      </tt>.</p>
    <p>value = winqueryreg('rootkey', 'subkey') returns a value in
    <tt>
        <b>rootkey\subkey</b>
      </tt> that has no value name property.</p>
    <p>
      <tt>
        <b>Note</b>
      </tt> : The literal name argument and the rootkey argument
    are case-sensitive. The subkey and valname arguments are not.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>if MSDOS then
  winqueryreg 'HKEY_LOCAL_MACHINE' 'HARDWARE\DESCRIPTION\System\CentralProcessor\0\' 'ProcessorNameString'
  lines(-1);
  mousechar = winqueryreg('name', 'HKEY_CURRENT_USER','control panel\mouse');
  len=size(mousechar);
  for k=1:len(1)
     setting = winqueryreg('HKEY_CURRENT_USER','control panel\mouse', mousechar(k));
     if (mousechar(k)=='') then mousechar(k)='default';,end
     str = sprintf('%s = %s', mousechar(k), string(setting));
     disp(str);
  end
end</pre>
    <h3>
      <font color="blue">Authors</font>
    </h3>
    <dl>
      <dd>
        <b></b>A.C</dd>
    </dl>
  </body>
</html>
